package com.tai.line;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
public class NewGame extends Activity{
	@Override
	protected void onCreate(Bundle bundle){
		super.onCreate(bundle);
		setContentView(R.layout.main3);
		//setContentView(R.layout.main3);
      mView v = new mView(this);
      v.Show();
      Button Highcore = (Button)findViewById(R.id.HighScore);
      Highcore.setOnClickListener(new OnClickListener() {
		
		public void onClick(View v) {
		
		alertbox("Highscore", "you are fun")	;
		}
	});
      
	}


protected void alertbox(String title, String mymessage) {
    new AlertDialog.Builder(this)
       .setMessage(mymessage)
       .setTitle(title)
       .setCancelable(true)
       .setNegativeButton(android.R.string.ok,
          new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int whichButton){}
          })
       .show();
    }
}